//
//  LocalPersistent.h
//  SmartContorary
//
//  Created by enghou on 17/7/8.
//  Copyright © 2017年 xyxorigation. All rights reserved.
//  对fmdb封装一层

#import <Foundation/Foundation.h>

@interface LocalPersistent : NSObject
+(instancetype)sharedInstance;

//维护一个本地化的字典项 字典是一个数组，每个数组是关于某个用户的所有信息

//-(void)saveUserAccount:(NSString *)account;
#pragma 使用FMDB实现
-(void)savePwdForAccount:(NSString *)account pwd:(NSString *)pwd;

-(NSString *)passWordForAccount:(NSString *)account;

-(void)latestLoginUser:(NSString **)usr passWord:(NSString **)pwd;

-(void)delAllUser;

//使用NSUserDefault实现
-(void)saveContent:(id)cnt forKey:(NSString *)key;

-(id)contentForKey:(NSString *)key;

-(void)removeContentForKey:(NSString *)key;
@end
